package demo1;

/**
 * 测试多线程测试环境
 */
public class Main1 {
    public static void main(String[] args) {
        for (int i = 0; i <10 ; i++) {
            Thread t1 =new Thread(()->{
                SingleTonHungry instance=SingleTonHungry.getInstance();
                System.out.println(instance);
            });
            t1.start();
        }
    }
}
